<h1>Restful Thread Messages</h1>

<p><%= rtm_menu -%></p>

<p><%= flash[:notice] %></p>

<%= error_messages_for :message %>
<% form_for :message, :url => messages_path do |f| -%>
  <%= f.hidden_field :receiver_ids %>
  <p>
    To: <br /> 
    <%= @message.receiver_ids %>
  </p>
  <p>
    Subject: <br /> 
    <%= f.text_field :subject %>
  </p>
  <p>
    Body: <br /> 
    <%= f.text_area :body, :rows => 4 %>
  </p>
  <p>
    <%= f.submit 'Send' %>
  </p>
<% end -%>